#include <iostream>

using namespace std;

template <class T>

class myPair {
public:
	myPair(T first, T second)
	{
		a = first;
		b = second;
	}
	T getMax();

private:
	T a;
	T b;
};

template <class T>
T myPair<T>::getMax()
{
	T retval;
	retval = a > b ? a : b;
	return retval;
	
}

int main()
{
	myPair<int>myobject(100,10);
	cout<< myobject.getMax()<<endl;

	return 0;
}